package basics

import (
	"h_rpcx/serve/user/config"
	"h_rpcx/until"
)

var (
	EtcdS  *config.Etcd
	ServeS *config.Serve
	MysqlS *config.Mysql
)

func SettIng(k string, v interface{}) error {
	configs := until.Configs{Path: "./config"}
	setConfig := configs.SetConfig()
	err := setConfig.UnmarshalKey(k, v)
	if err != nil {
		return err
	}
	return nil
}
